package BasicClass.One;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class BasicOne18 {
    /**
     * 3
     * 0
     * fang 90
     * yang 50
     * ning 70
     * @param args
     */
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        int size = Integer.parseInt(bufferedReader.readLine());
        int flag = Integer.parseInt(bufferedReader.readLine());
        String[] str = new String[size];
        HashMap<Object, Object> map = new HashMap<>();
        for (int i = 0; i < size; i++) {
            str[i] = bufferedReader.readLine();
        }
        String[] split = bufferedReader.readLine().split(" ");
        int[] arr = new int[size];
        for (int i = 0; i < size; i++) {
            arr[i] = Integer.parseInt(split[i]);
        }
        BasicOne17 one17 = new BasicOne17();
        int i = one17.Main(arr, 0, size - 1);
        System.out.println(i);
    }

    /**
     * 查找和排序
     *
     * 题目：输入任意（用户，成绩）序列，可以获得成绩从高到低或从低到高的排列,相同成绩
     * 都按先录入排列在前的规则处理。
     */
    public void Main(){

    }
}
